<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin:0px;
            padding:0px;
        }
        body{
            font-size:12px;
        }
        #main{
            width:800px;
            height:auto;
            overflow:hidden;
            z-index:1;
            margin:10px auto;
        }
        #main #head-p{
            text-align: center;
            font-weight: bold;
            font-size:30px;
            padding:10px 0px;
        }
        #d1{
            height: 50px;
            text-align:center;
            line-height:50px;
        }
    </style>
</head>
<body>
    <div id="main">
        <p id="head-p">动态表格案例</p>
        <p id="d1">
            学号:
            <input type="text" value="" id="sid">
            姓名：
            <input type="text" value="" id="name">
            性别：
            <input type="text" value="" id="genter">
            <input type="button" value="增加" id="add">
        </p>
        <hr>
        <table id="t1">
            <tbody>
                <tr id="tr1">
                    <td width="40px">选择</td>
                    <td width="60px">学号</td>
                    <td width="60px">姓名</td>
                    <td width="40px">性别</td>
                    <td width="270px">操作</td>
                </tr>
            </tbody>
            <tr></tr>
        </table>
    </div>
</body>
</html>